package com.yuandian.middle.platform.enums;

/**
 * 说明：响应分布枚举类
 * @Author tianlr
 * @Date 2023/5/19 10:11
 */
public enum ResponseSpeedEnum {
    FAST("1", "快速响应"),
    NORMAL("2", "正常响应"),
    SLOW("3", "慢响应"),
    SLOWEST("4", "缓慢响应"),
    TIMEOUT("5", "超时响应");

    private String item;
    private String itemValue;
    ResponseSpeedEnum(String item, String itemValue){
        this.item = item;
        this.itemValue = itemValue;
    }

    public static String getItemValue(String item) {
        for (ResponseSpeedEnum m : ResponseSpeedEnum.values()) {
            if ((m.item).equals(item)) {
                return m.itemValue;
            }
        }
        return "";
    }

    public String getItem() {
        return item;
    }

    public String getItemValue() {
        return itemValue;
    }
}
